package cn.wolfcode.crm.web.controller;

import cn.wolfcode.crm.domain.DataItems;
import cn.wolfcode.crm.service.IDataItemsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("dataItems")
public class DataItemsController {
    @Autowired
    private IDataItemsService dataItemsService;

    /*显示数据*/
    @RequestMapping("selectAll")
    @ResponseBody
    public Object selectBySn(){
        List<DataItems> dataItemsList = dataItemsService.selectAll();
        return dataItemsList;
    }


}
